#ifndef FILETRAP_H
#define FILETRAP_H

#include <QtGui/QDialog>
#include <QtDebug>
#include <QSettings>
#include "windowmover.h"
#include <QDesktopWidget>

namespace Ui {
    class FileTrap;
}

class FileTrap : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(FileTrap)
public:
    explicit FileTrap(QWidget *parent = 0);
    virtual ~FileTrap();
    void show();
    void hide();
protected:
    bool eventFilter(QObject *object, QEvent *event);
    virtual void changeEvent(QEvent *e);
    void keyPressEvent(QKeyEvent *evt);
    WindowMover *mover;

private:
    Ui::FileTrap *m_ui;
};

#endif // FILETRAP_H
